window: Maintain accessible HIDDEN state
authorMatthias Clasen <mclasen@redhat.com>
Sat, 24 Oct 2020 19:23:12 +0000 (15:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 24 Oct 2020 19:25:03 +0000 (15:25 -0400)
commitbba6d604f02a6b42a894e83542f548bfafa937be
tree1ff08a5530ed472044d515c6a79770701928cf5f
parent274f9ad919057c455d4c1b95184a26ac80b3d812
window: Maintain accessible HIDDEN state

We want to use the HIDDEN state to control when
things get added and removed from the accessible
tree, so ensure that we a) set HIDDEN to true
initially for windows, and b) we update HIDDEN
when a window is shown or hidden.

The second part is handled by gtk_widget_hide
for other widgets, but hiding a window does not
always go through that code path.
gtk/gtkwindow.c